package guoanmaker.operator.business.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

import guoanmaker.operator.business.model.OperatorPatent;
import guoanmaker.operator.business.model.Patent;

public interface OperatorPatentRepository extends JpaRepository<OperatorPatent, String>,JpaSpecificationExecutor<OperatorPatent>{
	
	@Query("select r from OperatorPatent r where r.type=:type and r.citycode=:citycode")	
	public List<OperatorPatent>  selectByOperatorPatent(@Param("type") int type,@Param("citycode") String citycode);

}
  